home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / intmemry.zip / MEMO1110.TXT < prev    next >
Text File  |  1992-12-02  |  3KB  |  51 lines

  1.   ╔═════════════════════════════════════════════════════════════════════════╗
  2.   ║                                                                         ║
  3.   ║           Technical Description of EMS Contexts and Handles             ║
  4.   ║                                                                         ║
  5.   ╚═════════════════════════════════════════════════════════════════════════╝
  6.  
  7. CONTEXTS & HANDLES
  8.  
  9.   A context is the state of the expanded memory pages that are physically
  10.   mapped into the 64K-byte page frame at a given time.  A handle is a value
  11.   associated with a logical page of expanded memory.  Application programs
  12.   use handles to identify the expanded memory pages they've allocated.
  13.   Applications also use EMM to save information about the pages they have
  14.   mapped into the page frame.  EMM saves the context and keeps track of it
  15.   using the handle the application program used in requesting the context
  16.   save.
  17.  
  18.   EMM saves this information in its own internal data structures (using EMM
  19.   Function 8) or in the data space of the application requesting the context
  20.   save (using EMM Function 15).  The Context and Handles parameters only
  21.   relate to EMM Functions 8 and 9 (Save Page Map and Restore Page Map),
  22.   which save and restore only the mapping context of the 64K-byte page
  23.   frame.  This is because functions 8 and 9 use space within EMM to store
  24.   the context information, and that space is allocated based on these
  25.   parameters.
  26.  
  27.   Functions 15 and 16 use data space in the application to save the mapping
  28.   information.  This means the number of contexts that can be saved is not
  29.   limited by these parameters.
  30.  
  31.   The number of contexts limits the maximum number of handles that can do a
  32.   context save (each handle can do only one context save using Function 8)
  33.   without doing a context restore (Function 9).
  34.  
  35.   EXAMPLE
  36.  
  37.   The Above Board QUIKBUF program is a memory-resident program.  This means
  38.   it may be invoked when another program has pages mapped into the expanded
  39.   memory page frame.  QUIKBUF must make sure that if it uses expanded
  40.   memory, it doesn't corrupt the other applications that are also using it.
  41.  
  42.   Therefore, when QUIKBUF needs to use expanded memory, it tells EMM to save
  43.   the context (Function 8) to save the current state of the expanded memory
  44.   pages.  QUIKBUF then maps the pages it needs into the 64K-byte page frame.
  45.   When it's done using expanded memory, QUIKBUF tells EMM to restore the
  46.   context (Function 9).
  47.  
  48.  
  49. ══════════════════════════════════════════════════════════════════════════════
  50. End of file                 Intel FaxBack # 1110          December 2,1992
  51.